package com.xdc.pigtestdemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述:
 * 这是一个测试类Controller
 *
 * @author xiadc
 * @create 2018-07-26 10:37
 */
@RestController
public class TestController {

    @GetMapping("/hello")
    public String hello(){
        System.out.println("test success!");
        return "hello,test is success!";
    }
}
